/*
 * @Description: Stay hungry，Stay foolish
 * @Author: Huccct
 * @Date: 2023-05-19 17:16:03
 * @LastEditors: Huccct
 * @LastEditTime: 2023-05-23 21:32:17
 */
// 登录接口需要携带参数ts类型
export interface LoginFormData {
    username?: string
    password?: string
  }
  
  export interface ResponseData {
    code?: number
    message?: string
    ok?: boolean
  }
//   这表明 data 属性是特定于登录响应的，可能包含登录成功后返回的信息，如令牌或用户 ID  
  export interface LoginResponseData extends ResponseData {
    data?: string
  }
  
  export interface userInfoResponseData extends ResponseData {
    data: {
      routes: string[]
      buttons: string[]
      roles: string[]
      name: string
      avatar: string
    }
  }